/*
    This file is a part of t18 project (C++17 framework for algotrading)
    Copyright (C) 2019, Arech (aradvert@gmail.com; https://github.com/Arech)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once

namespace utils {
	namespace hana = ::boost::hana;
	using namespace hana::literals;

	template<typename... T>
	using make_set_t = decltype(hana::make_set(hana::type_c<T>...));

	template<typename HST>
	constexpr bool isHSetT(const HST& s)noexcept {
		return hana::is_a<hana::set_tag, HST> && hana::all_of(s, is_htype_tag);
	}
	template<typename HST>
	constexpr bool isHSetT_v = isHSetT(HST());
	
}
